import { instance } from "./request";

//获取箱单列表
export const getBoxNoCacheList = () => {
  return instance({
    url: "/Box/getBoxNoCacheList",
    method: "get",
  });
};
//扫码添加单号
export const scanCode = (data) => {
  return instance({
    url: "/Box/scanCode",
    method: "post",
    data,
  });
};
//提交未发出箱单
export const addBoxCache = (data) => {
  return instance({
    url: "/Box/addBoxCache",
    method: "post",
    data,
  });
};
//未发出箱单列表
export const getBoxCacheList = () => {
  return instance({
    url: "/Box/boxCacheList",
    method: "get",
  });
};
//最终确认保存订单
export const saveBox = (data) => {
  return instance({
    url: "/Box/saveBox",
    method: "post",
    data,
  });
};
//已发出订单列表
export const boxList = (data) => {
  return instance({
    url: "/Box/boxList",
    method: "post",
    data,
  });
};
//删除未发出箱单
export const delBoxNoCache = (data) => {
  return instance({
    url: "/Box/delBoxNoCache",
    method: "post",
    data,
  });
};
//创建未发出箱单号
export const getBoxNoCache = () => {
  return instance({
    url: "/Box/getBoxNoCache",
    method: "get",
  });
};
//获取未发出箱单列表
export const getBoxNoOrderCacheList = (data) => {
  return instance({
    url: "/Box/getBoxNoOrderCacheList",
    method: "post",
    data,
  });
};
//删除箱单
export const delBoxNoOrderCache = (data) => {
  return instance({
    url: "/Box/delBoxNoOrderCache",
    method: "post",
    data,
  });
};
//扫码发货
export const Scan = (data) => {
  return instance({
    url: "/Scan/index",
    method: "post",
    data,
  });
};
//已发出箱单列表
export const getSendBoxlist = () => {
  return instance({
    url: "/Box/sendBoxlist",
    method: "get",
  });
};
//已发出箱单内容
export const sendBoxOrderlist = (data) => {
  return instance({
    url: "/Box/sendBoxOrderlist",
    method: "post",
    data,
  });
};
export const printBox = (data) => {
  return instance({
    url: "/Box/printBox",
    method: "post",
    data,
  });
};
//获取箱单号
